import request from '@/utils/request'

export function getClassify(params) {
  return request({
    url: '/category/page',
    method: 'get',
    params
  })
}
export function addClassify(data) {
  return request({
    url: '/category',
    method: 'post',
    data
  })
}
export function deleteClassify(id) {
  return request({
    url: `/category?id=${id}`,
    method: 'delete'
  })
}
export function editClassify(data) {
  return request({
    url: '/category',
    method: 'put',
    data
  })
}

